<?php

require_once 'cf/utils.inc';

function createSubmenu($currentCatId)
{
	global $subMenu, $projectCategories;

	foreach ($projectCategories as $cat)
	{
		$link = $cat['id'] ? ($cat['code'] ? $cat['code'] : $cat['id']) : '';
		$subMenu[] = array(
			'name' => $cat['count'].' / '.$cat['name'],
			'link' => "/portfolio/$link",
			'isCurrent' => ($cat['id'] == $currentCatId)
		);
	}
}

?>